package org.jeecg.modules.crm.mapper;

import org.jeecg.modules.crm.entity.PaymentVoucherCounter;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: Payment Voucher Counter
 * @Author: jeecg-boot
 * @Date: 2024-04-18
 * @Version: V1.0
 */
public interface PaymentVoucherCounterMapper extends BaseMapper<PaymentVoucherCounter> {
    
    /**
     * 根据月份和前缀查询计数器
     * @param counterMonth 月份，格式：YYYYMM
     * @param prefix 前缀
     * @return 计数器对象
     */
    PaymentVoucherCounter selectByMonthAndPrefix(@Param("counterMonth") String counterMonth, @Param("prefix") String prefix);
} 